package com.tdengine.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tdengine.entity.TestEntity;
import org.apache.ibatis.annotations.Param;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * 子表操作
 */
@Mapper
public interface TDTableMapper extends BaseMapper<TestEntity> {

    public void insertOne(TestEntity entity);

    void batchInsert(@Param("serialNumber")String serialNumber, @Param("dbName") String dbName,@Param("supperTableName") String supperTableName,@Param("data") List<TestEntity> list);

    List<TestEntity> page(Page<TestEntity> page, @Param("dbName") String dbName, @Param("tableName") String tableName);
}
